package com.mc.serviceImpl;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mc.dao.XyMapper;
import com.mc.dao.XyTypeMapper;
import com.mc.model.Xy;
import com.mc.service.IXyxyService;
@Service
public class XxyyServiceImpl implements IXyxyService{

	@Autowired private XyMapper xyMapper;
	@Autowired private XyTypeMapper xyTypeMapper;
	
	public int deleteByPrimaryKey(Integer xyId) {
		// TODO Auto-generated method stub
		return xyMapper.deleteByPrimaryKey(xyId);
	}

	public int insert(Xy record) {
		// TODO Auto-generated method stub
		return xyMapper.insert(record);
	}

	public int insertSelective(Xy record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public Xy selectByPrimaryKey(Integer xyId) {
		// TODO Auto-generated method stub
		return xyMapper.selectByPrimaryKey(xyId);
	}

	public int updateByPrimaryKeySelective(Xy record) {
		// TODO Auto-generated method stub
		return 0;
	}

	public int updateByPrimaryKeyWithBLOBs(Xy record) {
		// TODO Auto-generated method stub
		return xyMapper.updateByPrimaryKeyWithBLOBs(record);
	}

	public int updateByPrimaryKey(Xy record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<String> selectalljs(int jbis) {
		// TODO Auto-generated method stub
		return xyMapper.selectalljs(jbis);
	}

	@Override
	public List<Xy> selectbyjsandjb(int jb, String js) {
		// TODO Auto-generated method stub
		return xyMapper.selectbyjsandjb(jb, js);
	}

	@Override
	public List<Xy> selectxymaxjs(int jb) {
		// TODO Auto-generated method stub
		return xyMapper.selectxymaxjs(jb);
	}

	@Override
	public List<Xy> selectallxy(int type,int start,int size){
		// TODO Auto-generated method stub
		return xyMapper.selectallxy(type,start,size);
	}

	@Override
	public int countofxybys(int type) {
		// TODO Auto-generated method stub
		return xyMapper.countofxybys(type);
	}

}
